const initState = []
export default function tableCheckReducer(preState = initState, action) {
  // console.log(preState,action);
  const { type, data } = action
  switch (type) {
    case 'changeChecked':
      return [...data]
    default:
      return preState
  }
}